﻿<%@ Page Title="Add Student" Language="C#" MasterPageFile="~/Views/Shared/UserMaster.master"
    Inherits="System.Web.Mvc.ViewPage<Eacademy.Domain.Models.AdminAssignmentsViewModel>" %>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
    <script src="/content/js/jquery.tokeninput.js" type="text/javascript"></script>
    <script src="/content/js/jquery.maskedinput-1.2.2.js" type="text/javascript"></script>
    <link href="/content/css/token-input.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(document).ready(function () {

            $('#Assignment').tinymce(tinyMCEsettings);
            $('#DateDue').datepicker({
                minDate: '+1day',
                maxDate: '+61days',
            }).mask("99/99/9999");
        });
    </script>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Add Assignment
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h3>
        Add Assignment</h3>
    <% using (Html.BeginForm("Add", "Assignments", FormMethod.Post, new { autocomplete = "off" }))
       {%>
    <div class="forms-elements">
        <div class="form-wrapper">
            <div class="form-label">
                <%: Html.LabelFor(model => model.Title)%>
            </div>
            <div class="form-element">
                <div class="textbox-xmedium-form">
                    <%: Html.TextBoxFor(model => model.Title, new { @class = "textbox-xmedium-field" })%>
                </div>
            </div>
            <div class="form-error form-error-150">
                <%: Html.ValidationMessageFor(model => model.Title)%>
            </div>
        </div>
        <div class="form-wrapper">
            <div class="form-label">
                <%: Html.LabelFor(model => model.DateDue)%>
            </div>
            <div class="form-element">
                <div class="textbox-xmedium-form">
                    <%: Html.TextBoxFor(model => model.DateDue, new { @class = "textbox-xmedium-field" })%>
                </div>
            </div>
            <div class="form-error form-error-150">
                <%: Html.ValidationMessageFor(model => model.Title)%>
            </div>
        </div>
        <div class="form-wrapper">
            <div class="form-label">
                <%: Html.LabelFor(model => model.Assignment)%>
            </div>
            <div class="form-element description">
                <%= Html.TextAreaFor(model => model.Assignment)%>
            </div>
            <div class="form-error">
                <%: Html.ValidationMessageFor(model => model.Assignment)%>
            </div>
        </div>
        
        <div class="form-wrapper">
            <div class="form-label">
            </div>
            <div class="form-element">
                <%: Html.HiddenFor(model => model.SubjectId) %>
                <input id="subbtn" type="submit" value="Add Assignment" class="button-style" />
            </div>
        </div>
    </div>
    <% } %>
</asp:Content>
